gdk: Emulate motion events when requested
authorMatthias Clasen <mclasen@redhat.com>
Sat, 3 Mar 2012 04:33:16 +0000 (23:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 3 Mar 2012 04:33:16 +0000 (23:33 -0500)
commit88ebe2285fc159a9c7adeabcce294e2ed8d09b68
treee20886f5a561eee9c94de8919309f40e310087e5
parentff37a04c96a249f4cd4ee0f0a2ee79887fd0ffbc
gdk: Emulate motion events when requested

GtkRange was using GDK_POINTER_MOTION_MASK, and it was not
getting any emulated motion events, because we only translate
from GDK_BUTTON_MOTION_MASK to GDK_POINTER_MOTION_MASK, but not
the other way around, and emulated_mask only had
GDK_BUTTON_MOTION_MASK in it. Now we put GDK_POINTER_MOTION_MASK
in emulated_mask and successfully match for windows that
have GDK_POINTER_MOTION_MASK or any of the button motion masks
selected.

This fixes range sliders not following the finger and jumping
to the last position upon release.
gdk/gdkwindow.c